<template>
<el-image :src="src" class="img-container">
  <template #error>
    <img src="./head.jpeg" alt="">
      </template>
    </el-image>
</template>

<script>
export default {
name:'Imagehead',
props:{
  src:{
    type:String,
    default:''
  }
}
};
</script>

<style lang="scss" scoped>
.img-container {
  border-radius: 50%;
  ::v-deep img{
    width:50px;
    height: 50px;
  }
}
</style>